package org.dromara.tearoom.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.tearoom.domain.TerRegionalInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 区域信息业务对象 ter_regional_info
 *
 * @author xch
 * @date 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerRegionalInfo.class, reverseConvertGenerate = false)
public class TerRegionalInfoBo extends BaseEntity {

    /**
     * 区域id
     */
    @NotNull(message = "区域id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分组名
     */
    @NotBlank(message = "分组名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String groupName;

    /**
     * 电话
     */
    private String phone;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 完整地址
     */
    private String address;

    /**
     * 区域ID
     */
    private Integer districtId;

    /**
     * 区域名称
     */
    private String districtName;

    /**
     * 城市ID
     */
    private Integer cityId;

    /**
     * 城市名称
     */
    private String cityName;

    /**
     * 省份ID
     */
    private Integer provinceId;

    /**
     * 省份名称
     */
    private String provinceName;

    /**
     * 区域集合
     */
    private List<Integer> area;

    /**
     * 图片路径
     */
    private String imgUrl;

    /**
     * 删除标识
     */
    private String delFlag;

    private long groupId;

    private Integer orderNum;
}
